import request from '@/utils/request'

export function listStockPool(query) {
  return request({
    url: '/stock/pool/list',
    method: 'post',
    data: query
  })
}

export function getStockPool(id) {
  return request({
    url: `/stock/pool/${id}`,
    method: 'get'
  })
}

export function addStockPool(data) {
  return request({
    url: '/stock/pool/save',
    method: 'post',
    data: data
  })
}

export function updateStockPool(data) {
  return request({
    url: '/stock/pool',
    method: 'put',
    data: data
  })
}

export function delStockPool(id) {
  return request({
    url: `/stock/pool/${id}`,
    method: 'delete'
  })
}